From 447fae8d4bbe5448f5a177368d64a65d5ad77ab4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 25 Jun 2011 19:49:37 +0200 Subject: [PATCH] Revert 'Insert an LRM, to prevent -20 to come out as 20- in RTL' Correct text direction for printing of doubles should be (and is) done by printf() and friend and not enforced by GtkScale. This reverts commit 5eb2aac9474e1e8d035af1cbb4bc6756539af335 https://bugzilla.gnome.org/show_bug.cgi?id=322571 --- gtk/gtkscale.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 6969741f29..042722e2a0 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1334,8 +1334,7 @@ _gtk_scale_format_value (GtkScale *scale, if (fmt) return fmt; else - /* insert a LRM, to prevent -20 to come out as 20- in RTL locales */ - return g_strdup_printf ("\342\200\216%0.*f", priv->digits, value); + return g_strdup_printf ("%0.*f", priv->digits, value); } static void -- 2.30.2